<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Redis Admin</title>
</head>
<style>
/*
body
{
-moz-user-select:   none;
}
*/
</style>
<body id="body" bgcolor="#eeffdd" >
<form
    id="query"
    name="query"
    onsubmit="return false"

>
<fieldset><legend> Redis查询 </legend>
<label>选择服务器</label>
<select id="server" name="server" >
<?
/**
 * @var array $conf
 */
global $conf,$type;
foreach ($conf['redis'] as $key=>$v){?>
<option value='<?=$v['num']?>'><?=$v['ip']?></option>
<?}?>
</select>
<label>关键字</label>
 <input
    type="text"
    name="key"
    id="key"
    value="<?=isset($_SESSION['key'])?$_SESSION['key']:''?>"
/> <label>查询类型</label> <select
    name="type"
    id="type"
>
    <option value="0" <?=$type==0?'selected="selected"':''?>>列表</option>
    <option value="1" <?=$type==1?'selected="selected"':''?>>STRING</option>
    <option value="2" <?=$type==2?'selected="selected"':''?>>HASH</option>
    <option value="3" <?=$type==3?'selected="selected"':''?>>LIST</option>
    <option value="4" <?=$type==4?'selected="selected"':''?>>SET</option>
    <option value="5" <?=$type==5?'selected="selected"':''?>>zSET</option>
</select> <input
    type="submit"
    id="sub"
    value="查询"
/>
<input type="button" name="status" id="status"  value="状态"/>
<input type="button" name="add" id="add"  value="添加"/>
<input type="button" name="front" id="front"  value="前进"/>
<input type="button" name="back" id="back"  value="后退"/>
</fieldset>
</form>
<fieldset
    style="height: auto;"
>
<legend> 查询结果 </legend><br/>
<div id="res">

</div>
</fieldset>
<span style="background-color: "></span>
<script
    type="text/javascript"
    src="/js/jquery-1.4.2.min.js"
></script>
<script
    type="text/javascript"
    src="/js/jquery.dump.js"
></script>
<script type="text/javascript" src="/js/translate.js"></script>
<script type="text/javascript" src="/js/redis_admin.js"></script>
</body>
</html>
